package com.mysterymall.Controller;

import com.mysterymall.Common.Comp.Log;
import com.mysterymall.Common.Utils.Result;
import com.mysterymall.Service.GameCurrencyDetailService;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @ClassName com.mysterymall.Controller
 * @Description
 * @Author HuangWX
 * @Time 2023/12/09  13:12
 */
@RestController
@RequestMapping("/gameCurrencyDetail")
public class gameCurrencyDetailController {


    private final GameCurrencyDetailService gameCurrencyDetailService;

    /**
     * 构造器注入
     * @param gameCurrencyDetailService 游戏币明细服务
     */
    public gameCurrencyDetailController(GameCurrencyDetailService gameCurrencyDetailService) {
        this.gameCurrencyDetailService = gameCurrencyDetailService;
    }

    /**
     * 获取游戏币明细
     * @return Result
     */
    @GetMapping("/getGameCurrencyDetail")
    @Log
    public Result getGameCurrencyDetail(HttpServletRequest request){
        return gameCurrencyDetailService.getGameCurrencyDetail(request);
    }
}
